//
//  KSScanTableViewCell.swift
//  Supermarket
//
//  Created by Black_Crystal on 2017/9/28.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

class KSScanTableViewCell: UITableViewCell {
    
    private let titleLabel = UILabel()
    private let numberLabel = UILabel()
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.backgroundColor = UIColor.clear
        self.selectionStyle = .none
        
        titleLabel.text = "汪汪汪汪汪无无无无无无无无无无无无无无无无无无无无无无无无无无无无无无无无无无"
        titleLabel.font = UIFont.systemFont(ofSize: 15)
        titleLabel.numberOfLines = 0
        titleLabel.textColor = UIColor.white
        self.contentView.addSubview(titleLabel)
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalTo(10)
            make.right.equalTo(-80)
            make.top.bottom.equalTo(0)
        }
        
        numberLabel.text = "10"
        numberLabel.textColor = UIColor.white
        self.contentView.addSubview(numberLabel)
        numberLabel.snp.makeConstraints { (make) in
            make.top.equalTo(0)
            make.right.equalTo(-10)
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
